<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<base href="<%=basePath%>">

<title>Individual Behavior Model</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet"
	href="<%=path%>/xingkong/css/vendor/bootstrap.min.css">
<link href="<%=path%>/xingkong/css/flat-ui.css" rel="stylesheet">
<script type="text/javascript" src="<%=path%>/xingkong/js/comet4j-0.0.2.js"></script>  
<script type="text/javascript">  
function init(){  
        var kbDom = document.getElementById('kb');  
        JS.Engine.on({  
                realtimemessage : function(kb){//侦听一个channel  
                	console.log(kb);
                        kbDom.innerHTML = kb;  
                }  
        });  
        JS.Engine.start('conn');  
}  
</script> 
</head>

<body onload="init()">  
        剩余内存：<span id="kb">...</span>KB  
</body>  
</html>
